//
//  FANEmoticon.m
//  Weibo - OC
//
//  Created by user on 16/4/27.
//  Copyright © 2016年 user. All rights reserved.
//

#import "FANEmoticon.h"

@implementation FANEmoticon

+(instancetype)modelWithDict:(NSDictionary *)dict{
    
    FANEmoticon *model = [[FANEmoticon alloc] init];

    [model setValuesForKeysWithDictionary:dict];
    
    return model;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{}

/*@property (nonatomic, copy) NSString *chs;
 
 @property (nonatomic, copy) NSString *code;
 
 @property (nonatomic, copy) NSString *type;
 
 @property (nonatomic, copy) NSString *png;
 
 @property (nonatomic, copy) NSString *folderName;*/

- (void)encodeWithCoder:(NSCoder *)encoder{
    
    [encoder encodeObject:self.chs forKey:@"chs"];
    [encoder encodeObject:self.code forKey:@"code"];
    [encoder encodeObject:self.type forKey:@"type"];
    [encoder encodeObject:self.png forKey:@"png"];
    [encoder encodeObject:self.folderName forKey:@"folderName"];

    
}

- (nullable instancetype)initWithCoder:(NSCoder *)decoder{
    
    self = [super init];
    
    if (self != nil) {
        
        self.chs = [decoder decodeObjectForKey:@"chs"];
        self.code = [decoder decodeObjectForKey:@"code"];
        self.type = [decoder decodeObjectForKey:@"type"];
        self.png = [decoder decodeObjectForKey:@"png"];
        self.folderName = [decoder decodeObjectForKey:@"folderName"];
        
    }
    
 

    return self;
}

@end
